<!DOCTYPE html>
<html>
<head>
    <title>推荐商品信息表</title>
    <#include "/header.html">
</head>
<style>
    .el-table td, .el-table th {
        padding: 1px;
    }

    .el-table th {
        color: #0a8ddf;
    }

    .el-table .cell, .el-table th {
        padding-left: 2px;
        padding-right: 2px;

    }

    .el-table {
        font-size: 2px;

    }

    .demo-table-expand label {
        /*width: 90px;*/
        color: #0a8ddf;
    }

    .demo-table-expand .el-form-item {
        margin-right: 0;
        margin-bottom: 0;
        width: 15%;
    }

</style>
<body>
<div id="rrapp" v-cloak>
    <!--查询-->
    <el-row>
        <el-form :inline="true" class="demo-form-inline" size="small">
            <el-form-item>
                <el-input v-model="q.orderNo" clearable placeholder="订单号" style="width: 160px;"></el-input>
            </el-form-item>
            <el-form-item>
                <el-select v-model="q.productionStatus" clearable placeholder="生产状态" style="width: 120px;">
                    <el-option v-for="item in productionStatusEnum" :key="item.id"
                               :label="item.describe" :value="item.id" :disabled="item.disabled">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item>
                <el-select v-model="q.commissionStatus" clearable placeholder="提成状态" style="width: 120px;">
                    <el-option v-for="item in commissionStatusEnum" :key="item.id"
                               :label="item.describe" :value="item.id">
                    </el-option>
                </el-select>
            </el-form-item>
            <el-form-item>
                <el-date-picker v-model="q.beginCreatetime" type="datetime" placeholder="下单时间"
                                default-time="00:00:00" value-format="yyyy-MM-dd HH:mm:ss">
                </el-date-picker>
            </el-form-item>
            <el-form-item>
                <el-date-picker v-model="q.endCreatetime" type="datetime"
                                placeholder="结束时间" default-time="23:59:59" value-format="yyyy-MM-dd HH:mm:ss">
                </el-date-picker>
            </el-form-item>
            <el-form-item>
                <el-button icon="el-icon-search" type="primary" @click="query" plain>查询</el-button>&nbsp;&nbsp;
                <el-button type="primary" @click="reset" plain>重 置</el-button>&nbsp;&nbsp;&nbsp;&nbsp;
                <el-button type="danger" @click="batchAudit" plain>批量审核</el-button>
                <el-button type="danger" @click="batchInput" plain>批量录入</el-button>
            </el-form-item>
        </el-form>
    </el-row>
    <el-row>
        <span style="margin-left: 30px;color: red ;font-size: 18px; "> 物流总额：{{totalSum.sumLogiCost}}元 </span>
        <span style="margin-left: 30px;color: red;font-size: 18px; "> 外协总额：{{totalSum.sumCost}}元 </span>
        <span style="margin-left: 30px;color: red ;font-size: 18px;">  收银总额：{{totalSum.sumPayed}}元 </span>
    </el-row>
    <!--查询结束-->
    <!--首页开始-->
    <template>
        <el-table border ref="multipleTable" :data="erpOrder" tooltip-effect="dark" style="width: 100%">
            <el-table-column type="selection" width="50" align="center"></el-table-column>
            <el-table-column label="操作" align="center" width="90">
                <template slot-scope="scope">
                    <a href="javascript:;" v-show="scope.row.commissionStatus==1" @click="audit(scope.row.orderNo)"
                       @click="audit(scope.row.orderNo)">审核&nbsp;|</a>
                    <a href="javascript:;" v-show="scope.row.commissionStatus==1" @click="Revoke(scope.row.orderNo)"
                       @click="audit(scope.row.orderNo)">撤回</a>
                    <a href="javascript:;" v-show="scope.row.commissionStatus==2"
                       @click="Revoke(scope.row.orderNo)">撤回</a>
                    <span style="color: #0a8ddf" v-show="scope.row.commissionStatus==0">——</span>
                </template>
            </el-table-column>
            <el-table-column prop="orderNo" label="订单号" width="140" align="center">
                <template slot-scope="scope">
                    <a href="javascript:;" @click="orderDetail(scope.row.orderNo)">{{scope.row.orderNo}}</a>
                </template>
            </el-table-column>
            <el-table-column prop="commissionStatus" label="提成状态" align="center">
                <template slot-scope="scope">
                    <span style="color: red" v-show="scope.row.commissionStatus==0">未录入</span>
                    <span style="color: #0a8ddf" v-show="scope.row.commissionStatus==1">已录入</span>
                    <span style="color: #2ac845" v-show="scope.row.commissionStatus==2">已结算</span>
                </template>
            </el-table-column>
            <el-table-column prop="memberName" label="会员名" align="center" show-overflow-tooltip="true"></el-table-column>
            <el-table-column prop="itemName" label="商品名称" align="center" :show-overflow-tooltip="true"></el-table-column>
            <el-table-column prop="productionStatus" label="生产状态" align="center">
                <template slot-scope="scope">
                    <span style="color: red" v-show="scope.row.productionStatus==1">待审核</span>
                    <span v-show="scope.row.productionStatus==2">待分配</span>
                    <span v-show="scope.row.productionStatus==3">生产中</span>
                    <span v-show="scope.row.productionStatus==4">生产完成</span>
                    <span v-show="scope.row.productionStatus==5">已发货</span>
                    <span style="color: #2ac845" v-show="scope.row.productionStatus==6">已完成</span>
                    <span v-show="scope.row.productionStatus==7">新开单</span>
                    <span v-show="scope.row.productionStatus==7">异常</span>
                </template>
            </el-table-column>
            <el-table-column prop="totalAmount" label="商品总值" align="center"></el-table-column>
            <el-table-column prop="payableAmount" label="应付金额" align="center"></el-table-column>
            <el-table-column prop="payed" label="已支付金额" align="center"></el-table-column>
            <el-table-column prop="orderCreatetime" label="下单时间" align="center"></el-table-column>
            <el-table-column prop="cost" label="外协成本" align="center"></el-table-column>
            <el-table-column prop="info" label="外协商" align="center" show-overflow-tooltip="true"></el-table-column>
            <el-table-column prop="logiCost" label="物流成本" align="center"></el-table-column>
            <el-table-column prop="logiCompany" label="物流公司" align="center"></el-table-column>
        </el-table>
        <div class="block" align="center">
            <el-pagination
                    @size-change="handleSizeChange"
                    @current-change="handleCurrentChange"
                    :current-page="page.currentPage"
                    :page-sizes="page.pageSizes"
                    :page-size="page.pageSize"
                    layout="total, sizes, prev, pager, next, jumper"
                    :total="page.total">
            </el-pagination>
        </div>
    </template>
    <!--首页结束-->
    <!--订单详情start-->
    <el-dialog title="订单详情" :visible.sync="dialogErpOrderDetail" fullscreen>
        <!--操作 start -->
        <div class="panel-default" style="display: block;margin-bottom: 0px;" align="center">
            <div style="padding: 5px 0;" class="container">
                <div class="row">
                    <div class="col-md-8 col-md-offset-4">
                        <el-button size="small" class="pull-left" style="width: 100px;"
                                   @click="dialogErpOrderDetail=false">返回
                        </el-button>
                    </div>
                </div>
            </div>
        </div>
        <!--操作 end -->
        <!--订单信息 start -->
        <el-row>
            <el-card class="box-card">
                <div slot="header" class="clearfix">
                    <span>订单编号：&nbsp;&nbsp;{{erpOrderDetail.orderNo}}</span>
                </div>
                <div class="text item">
                    <div class="row" style="line-height:30px;font-size: 12px;">
                        <div class="col-md-3">
                            <div class="row">
                                <div class="col-md-4 text-right">会员名 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.memberName}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">联系人 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.shipName}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">生产状态 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.productionStatus}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">项目名称 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.projectName}}</div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="row">
                                <div class="col-md-4 text-right">发货状态 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.shipStatus}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">付款状态 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.payStatus}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">付款方式 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.payment}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">订单附言 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.memo}}</div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="row">
                                <div class="col-md-4 text-right">商品总额 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.totalAmount}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">优惠金额 ：</div>
                                <div class="col-md-8">
                                    {{erpOrderDetail.pmtGoods}}
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">应付金额 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.payableAmount}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">已付金额 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.payed}}</div>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="row">
                                <div class="col-md-4 text-right">收货人 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.shipName}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">联系方式 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.shipMobile}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">收货地区 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.shipArea}}</div>
                            </div>
                            <div class="row">
                                <div class="col-md-4 text-right">收货地址 ：</div>
                                <div class="col-md-8">{{erpOrderDetail.shipAddr}}</div>
                            </div>
                        </div>
                    </div>
                </div>
            </el-card>
        </el-row>
        <!--订单信息 end -->

        <!--商品明细列表 start -->
        <el-row>
            <el-card class="box-card">
                <div slot="header" class="clearfix">
                    <span>商品明细列表</span>
                </div>
                <el-table :data="orderItemDetailData" border max-height="250" style="width: 100%">
                    <el-table-column prop="name" label="产品名称"></el-table-column>
                    <el-table-column prop="addon" label="商品规格属性">
                        <template slot-scope="scope">
                            {{scope.row.addon}}
                        </template>
                    </el-table-column>
                    <el-table-column prop="price" label="单价"></el-table-column>
                    <el-table-column prop="nums" label="数量"></el-table-column>
                    <el-table-column prop="amount" label="总价"></el-table-column>
                </el-table>
            </el-card>
        </el-row>
        <!--商品明细列表 end -->
        <el-row>
            <el-card class="box-card">
                <div slot="header" class="clearfix">
                    <span>物流列表</span>
                </div>
                <div class="text item">
                    <el-table border stripe ref="multipleTable" :data="orderLogisticsList"
                              tooltip-effect="dark" size="mini">
                        <el-table-column prop="logiNo" label="物流单号"></el-table-column>
                        <el-table-column prop="logiCost" label="物流费用"></el-table-column>
                        <el-table-column prop="fromPeople" label="发货人"></el-table-column>
                        <el-table-column prop="fromArea" label="发货区域"></el-table-column>
                        <el-table-column prop="fromAddress" label="发货地址"></el-table-column>
                        <el-table-column prop="sendTime" label="发货时间"></el-table-column>
                        <el-table-column prop="toArea" label="收货省市区"></el-table-column>
                        <el-table-column prop="toAddress" label="收货地址"></el-table-column>
                        <el-table-column prop="toPhone" label="收货人电话"></el-table-column>
                        <el-table-column prop="sendType" label="发货类型">
                            <template slot-scope="scope">
                                <span v-show="scope.row.sendType==1">发票</span>
                                <span v-show="scope.row.sendType==2">样品</span>
                                <span v-show="scope.row.sendType==3">订单</span>
                            </template>
                        </el-table-column>
                        <el-table-column prop="logiCompany" label="物流公司"></el-table-column>
                    </el-table>
                </div>
            </el-card>
        </el-row>
    </el-dialog>
</div>

<script src="${request.contextPath}/statics/js/modules/order/orderRoyalty.js?_${.now?long}"></script>
</body>
</html>